<template>
  <!-- router-view是占位组件,用来存放路由组件  -->
  <!-- keep-alive缓存路由组件 只能缓存一定层次的 不会深层缓存 -->
  <keep-alive>
    <router-view></router-view>
  </keep-alive>
</template>

<script>
export default {
  name: "App",
  mounted() {
    // console.log(this,"app");
  },
};
</script>

<style>
</style>